package Content;
import java.io.File;
import java.util.ArrayList;
import java.util.List;

/**
 * TCSS 360 - Winter 2014
 * TESK Software
 */

/**
 * Represents a reviewer as an object.
 * 
 * @author Emily Linniman
 * @version March 3, 2014
 *
 */
public class Reviewer extends User {
	
	/** A string representing a reviewer. */
	private static final String REVIEWER = "REVIEWER";
	
	/** The list of papers the reviewer needs to review. */
	private List<Paper> paperList;

	/** 
	 * Constructs a reviewer object.
	 * 
	 * @param the_name the name of the reviewer
	 * @param the_password the password of the reviewer
	 * @param the_role the role of the user.
	 */
	public Reviewer(String the_name, String the_password, String the_role) {
		super(the_name, the_password, REVIEWER);
		paperList = new ArrayList<Paper>();
	}

	/**
	 * Adds a paper to the reviewers paper list.
	 * @param the_paper the paper to be added to the list
	 */
	public void addPaper(Paper the_paper) {
		paperList.add(the_paper);
	}
	
	/**
	 * Submits a finished review.
	 * 
	 * @param the_review the review to be submitted.
	 */
	public void review(File the_review) {
		//upload file to database
	}
	
}
